/* Base styles */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color: #f8fafc;
  --text-color: #1e293b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 5%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
}

/* Layout */
.game-container {
  max-width: 32rem;
  padding: 2rem;
  margin: 2rem auto;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.game-instructions {
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: center;
}

.game-instructions p {
  margin: 0.5rem 0;
  line-height: 1.5;
}

/* Form elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-color);
}

/* Buttons */
.button-group {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

/* Game feedback */
.game-feedback {
  min-height: 6rem;
  padding: 1rem;
  margin-top: 1.5rem;
  background-color: #f8fafc;
  border-radius: var(--radius-sm);
}

.feedback-message {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-color);
}

.guesses {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-color);
}

/* Animations */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-30px);
  }
  75% {
    transform: translateX(30px);
  }
}

.shake {
  animation: shake 2s ease-in-out;
}
